<?php

use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateAdminsTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('admins', function (Blueprint $table) {
            $table->increments('id');
            $table->string('a_uname')->commit('用户名');
            $table->string('a_upass')->commit('用户密码');
            $table->integer('role_id')->commit('角色id');
            $table->integer('a_status')->commit('用户状态');
            $table->string('a_name')->commit('用户姓名');
            $table->string('a_phone')->commit('用户电话');
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::drop('admins');
    }
}
